package com.auemall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.auemall.dao.BuyerGradesMapper;
import com.auemall.po.BuyerGrades;
import com.auemall.service.BuyGradeService;

@Service
public class BuyerGradesServiceImpl implements BuyGradeService {

	@Autowired
	private BuyerGradesMapper buyerGradesMapper;
	
	
	public BuyerGrades findBuyerDefaultLevel(Integer id) {
		
	   List<BuyerGrades> list = buyerGradesMapper.findBuyerDefaultLevel(id);
		
	   if (list != null && list.size() >0) {
		   
		   return list.get(0);
		   
	   }
		return null;
	}

}
